<script type="text/plain" id="{$w_data['name']}" name="{$w_data['name']}">{$w_data['value']}</script>
<link href="__PUBLIC__/ueditor/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>

<script type="text/javascript">
<if condition="$w_config['module_name'] = 'Admin'">
serverUrl = "{:U('Admin/File/ueditor')}";
<else/>
serverUrl = "{:U('User/File/ueditor')}";
</if>
<if condition="$w_config['type'] eq 'all'">
var ue = UE.getEditor("{$w_data['name']}",{
	serverUrl         : serverUrl,
	initialFrameWidth : "{$w_config['width']}",
	initialFrameHeight : "{$w_config['height']}"
});
<elseif condition="$w_config['type'] eq 'mini'"/>
var ue = UE.getEditor("{$w_data['name']}",{
	toolbars: [
        ['fullscreen', 'source', 'undo', 'redo', 'bold']
    ],
	initialFrameWidth : "{$w_config['width']}",
	initialFrameHeight : "{$w_config['height']}"
});
</if>
</script>